//package com.daocao.hua.impl;
//
//import android.content.Context;
//
//import com.daocao.hua.constant.Const;
//import com.daocao.hua.http.CallBackListener;
//import com.daocao.hua.http.InterfaceServer;
//import com.daocao.hua.interfaces.AboutInfo;
//import com.daocao.hua.http.InfoCallBack;
//import com.daocao.hua.http.ResponseListener;
//import com.daocao.hua.model.ContentDetailModel;
//import com.daocao.hua.model.RequestModel;
//import com.daocao.hua.util.JsonUtil;
//
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * 关于我数据
// * Created by Master.Dong on 2016/4/13.
// */
//public class AboutInfoImpl implements AboutInfo {
//
//    @Override
//    public void getAboutInfo(final Context mContext, final InfoCallBack callBack) {
//        Map<String, Object> mapData = new HashMap<String, Object>();
//        RequestModel model = new RequestModel(mapData);
//
//        InterfaceServer.getInstance(mContext.getApplicationContext()).requestInterface(Const.ABOUTUS, Const.RequestMethod.GET, model, Const.DEFAULT_TIMEOUT, //new CallBackListener<ContentDetailModel>(ContentDetailModel.class,callBack));
//                new ResponseListener() {
//            @Override
//            public void onStartInMainThread(Object result) {
//                callBack.onFailure(result.toString());
//            }
//
//            @Override
//            public void onFinishInMainThread(Object result) {
//            }
//
//            @Override
//            public Object onSuccessInRequestThread(int statusCode, String content) {
//                try {
//                    return JsonUtil.<ContentDetailModel>fromJson(content, ContentDetailModel.class);
//                } catch (Exception e) {
//                    return null;
//                }
//            }
//
//            @Override
//            public void onSuccessInMainThread(int statusCode, String content, Object result) {
//                try {
//                    ContentDetailModel model = (ContentDetailModel) result;
//
//                    callBack.onSuccess(model);
//                    //返回数据接口
//                } catch (Exception e) {
//                    e.printStackTrace();
//                }
//            }
//        });
//    }
//
//}
